package com.abel.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.net.URLEncoder;

/**
 * Author: Abel.lin
 * Date: Created in 2018/7/16 11:56
 * Company: Abel.Studio
 * Copyright: Copyright (c) 2017
 * Description:
 */
@Controller
public class LoginController {
    @RequestMapping("login")
    public String login(ModelMap mMap){
        mMap.addAttribute("hello", "hello freemarker");
        return "login";
    }

}
